﻿@model IEnumerable<StudentInformationManagement.Models.StuInfo>

    @{
        ViewBag.Title = "学生信息管理";
    }

    <h2>学生信息列表</h2>

    <table class="table">
        <thead>
            <tr>
                <th>学号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>班级</th>
                <th>联系电话</th>
                <th>邮箱</th>
                <th>QQ</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var student in Model)
            {
                <tr>
                    <td>@student.StuId</td>
                    <td>@student.StuName</td>
                    <td>@student.StuGender</td>
                    <td>@student.StuClass</td>
                    <td>@student.StuTelephone</td>
                    <td>@student.StuEmail</td>
                    <td>@student.StuQQ</td>
                    <td>
                        @Html.ActionLink("编辑", "Edit", new { id = student.StuId }) |
                        @Html.ActionLink("删除", "Delete", new { id = student.StuId })
                    </td>
                </tr>
            }
        </tbody>
    </table>

    <p>
        @Html.ActionLink("添加新学生", "Create")
    </p>
